#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

//void Swap(int* a, int* b)
//{
//	*a = *a + *b;
//	*b = *a - *b;
//	*a = *a - *b;
//}

void Swap(int* a, int* b)
{
	*a = *a ^ *b;
	*b = *b ^ *a;
	*a = *a ^ *b;
}

int main()
{
	int a, b;
	while (~scanf("%d%d", &a, &b))
	{
		Swap(&a, &b);
		printf("%d %d\n", a, b);
	}

	return 0;
}

#include<stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	int count = 0;
	for (int i = 0; i < 32; i++)
	{
		if (n & (1 << i))
			count++;
	}
	printf("%d\n", count);

	return 0;
}

#include<stdio.h>
int main()
{
	int num;
	scanf("%d", &num);
	int count = 0;
	while (num)
	{
		count++;
		num &= (num - 1);
	}
	printf("%d\n", count);

	return 0;
}

